package com.frcdi.qms.equipment.mapper;

import java.util.List;
import com.frcdi.qms.equipment.domain.EquipmentBase;
import org.apache.ibatis.annotations.Param;

/**
 * 设备基础信息Mapper接口
 *
 * @author cell
 * @date 2023-12-07
 */
public interface EquipmentBaseMapper
{
    /**
     * 查询设备基础信息
     *
     * @param equipmentId 设备基础信息主键
     * @return 设备基础信息
     */
    public EquipmentBase selectEquipmentBaseByEquipmentId(Long equipmentId);

    /**
     * 查询设备基础信息列表
     *
     * @param equipmentBase 设备基础信息
     * @return 设备基础信息集合
     */
    public List<EquipmentBase> selectEquipmentBaseList(EquipmentBase equipmentBase);

    /**
     * 新增设备基础信息
     *
     * @param equipmentBase 设备基础信息
     * @return 结果
     */
    public int insertEquipmentBase(EquipmentBase equipmentBase);

    /**
     * 修改设备基础信息
     *
     * @param equipmentBase 设备基础信息
     * @return 结果
     */
    public int updateEquipmentBase(EquipmentBase equipmentBase);

    /**
     * 删除设备基础信息
     *
     * @param equipmentId 设备基础信息主键
     * @return 结果
     */
    public int deleteEquipmentBaseByEquipmentId(Long equipmentId);

    /**
     * 批量删除设备基础信息
     *
     * @param equipmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEquipmentBaseByEquipmentIds(Long[] equipmentIds);

    public EquipmentBase checkequipmentBaseNameUnique(@Param("equipmentName")String equipmentName, @Param("equipmentType")Long equipmentType);
}
